package test.api;

import java.io.File;
import java.util.List;

import com.google.common.collect.Lists;

import keter.mongo.model.Book;

public class Plan { 
    //方案的id  
    private String id; 
    //方案名称  
    private String name; 
    //方案附件
    private File attach;
 
    public File getAttach() {
        return attach;
    }

    public void setAttach(File attach) {
        this.attach = attach;
    }

    //方案人
    private List<Book> users = Lists.newArrayList(); 
    
    public void setUsers(List<Book> users) {
		this.users = users;
	}

	public List<Book> getUsers() {
		return users;
	}

	public Plan() 
    { 
    } 
    
    public void addUser(Book u){
    	this.users.add(u);
    }
 
    public String getName() { 
        return name; 
    } 
 
    public void setName(String name) { 
        this.name = name; 
    } 
     
    public String getId() { 
        return id; 
    } 
 
    public void setId(String id) { 
        this.id = id; 
    } 
} 